<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<link rel="stylesheet" href="style.css" type="text/css">
<meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type">
<link rel="Start" href="index.html">
<link rel="Up" href="Adaline.html">
<link title="Index of types" rel=Appendix href="index_types.html">
<link title="Index of exceptions" rel=Appendix href="index_exceptions.html">
<link title="Index of values" rel=Appendix href="index_values.html">
<link title="Index of class attributes" rel=Appendix href="index_attributes.html">
<link title="Index of class methods" rel=Appendix href="index_methods.html">
<link title="Index of classes" rel=Appendix href="index_classes.html">
<link title="Index of modules" rel=Appendix href="index_modules.html">
<link title="NeuralNetwork" rel="Chapter" href="NeuralNetwork.html">
<link title="NeuralNetworkIo" rel="Chapter" href="NeuralNetworkIo.html">
<link title="Adaline" rel="Chapter" href="Adaline.html">
<link title="MlPerceptron" rel="Chapter" href="MlPerceptron.html">
<link title="SigmoidMlPerceptron" rel="Chapter" href="SigmoidMlPerceptron.html"><title>Adaline.adaline</title>
</head>
<body>
<div class="navbar">&nbsp;<a href="Adaline.html">Up</a>
&nbsp;</div>
<center><h1>Class <a href="type_Adaline.adaline.html">Adaline.adaline</a></h1></center>
<br>
<pre><span class="keyword">class</span> <a name="TYPEadaline"></a>adaline : <code class="type">int -> int -> float Matrix.matrix -> float array -> </code><code class="code">object</code> <a href="Adaline.adaline.html">..</a> <code class="code">end</code></pre>Mutable adaline object<br>
<hr width="100%">
<pre><span class="keyword">method</span> <a name="METHODinput_size"></a>input_size : <code class="type">int</code></pre><pre><span class="keyword">method</span> <a name="METHODoutput_size"></a>output_size : <code class="type">int</code></pre><pre><span class="keyword">val</span> <a name="ATTweights"></a>weights : <code class="type">float Matrix.matrix</code></pre><pre><span class="keyword">val</span> <a name="ATTbias"></a>bias : <code class="type">float array</code></pre><pre><span class="keyword">method</span> <a name="METHODgetLayersNb"></a>getLayersNb : <code class="type">unit -> int</code></pre><div class="info">
number of neuron layers in the network (here always 1)<br>
</div>
<pre><span class="keyword">method</span> <a name="METHODfeed"></a>feed : <code class="type">float array -> float array</code></pre><div class="info">
<code class="code">feed input</code> returns the network output<br>
</div>
<pre><span class="keyword">method</span> <a name="METHODlearn"></a>learn : <code class="type">float -> float array -> float array -> unit</code></pre><div class="info">
<code class="code">learn rate input desired_output</code>
	reduces the quadratic error<br>
</div>
<pre><span class="keyword">method</span> <a name="METHODprint"></a>print : <code class="type">unit -> unit</code></pre><pre><span class="keyword">method</span> <a name="METHODtoString"></a>toString : <code class="type">unit -> string</code></pre><pre><span class="keyword">method</span> <a name="METHODcopy"></a>copy : <code class="type">unit -><br>       < copy : 'a; feed : float array -> float array; getLayersNb : unit -> int;<br>         input_size : int; learn : float -> float array -> float array -> unit;<br>         output_size : int; print : unit -> unit; toString : unit -> string;<br>         writeFile : ?comment:string -> string -> unit; .. ><br>       as 'a</code></pre><div class="info">
Returns a fresh copy of the network (no data shared)<br>
</div>
<pre><span class="keyword">method</span> <a name="METHODwriteFile"></a>writeFile : <code class="type">?comment:string -> string -> unit</code></pre></body></html>